Skip to content

Conversation

@YunchuWang
Copy link
Member

@YunchuWang YunchuWang commented Apr 29, 2025

This pull request introduces changes to improve the user agent string generation for the Durable Task SDK by including the component type (e.g., Client or Worker) in the string. Additionally, it updates imports in relevant files to ensure proper usage of namespaces. Below are the most significant changes:

User Agent String Improvements:

  • Updated the GetUserAgent method in DurableTaskUserAgentUtil to include a componentType parameter, allowing the user agent string to specify whether it pertains to a Client or Worker. (src/Shared/AzureManaged/DurableTaskVersionUtil.cs, src/Shared/AzureManaged/DurableTaskVersionUtil.csL24-R30)
  • Modified calls to GetUserAgent in DurableTaskSchedulerClientOptions and DurableTaskSchedulerWorkerOptions to pass the appropriate component type (DurableTaskClient or DurableTaskWorker). (src/Client/AzureManaged/DurableTaskSchedulerClientOptions.cs, [1]; src/Worker/AzureManaged/DurableTaskSchedulerWorkerOptions.cs, [2]

Namespace Updates:

  • Added missing namespace imports for Microsoft.DurableTask.Client and Microsoft.DurableTask.Worker.Hosting in DurableTaskSchedulerClientOptions and DurableTaskSchedulerWorkerOptions, respectively, to ensure proper functionality. (src/Client/AzureManaged/DurableTaskSchedulerClientOptions.cs, [1]; src/Worker/AzureManaged/DurableTaskSchedulerWorkerOptions.cs, [2]

@YunchuWang YunchuWang changed the title Wangbill/add Enrich User-Agent Header in gRPC Metadata to indicate Client or Worker as caller Apr 29, 2025
@YunchuWang YunchuWang requested a review from torosent April 29, 2025 16:58
@YunchuWang YunchuWang requested a review from cgillum April 29, 2025 17:42
@YunchuWang YunchuWang merged commit 609336e into main Apr 29, 2025
4 checks passed
@YunchuWang YunchuWang deleted the wangbill/add branch April 29, 2025 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants